<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .input_text {
            border: 1px solid #d9d9d9;
            color: #aaa;
            outline: none;
        }
        
        .input_text_focus {
            border: 1px solid #ffd6db;
            color: #888;
            outline: none;
        }
    </style>
</head>
<body>
    <div class="new_header">
        <div class="new_wrap">
            <form id="hder_login_form_new" method="post">
                <input type="text" class="input_text" id="uname" value="邮箱/ID/手机号">
            </form>
        </div>
    </div>
</body>
<script>
var uname=document.getElementById('uname')
uname.onfocus=function(){
    if(uname.value==='邮箱/ID/手机号'){
        uname.value=''
        uname.style.border='1px solid #ffd6db'
    }
    uname.style.color='#000000'
}
uname.onblur=function(){
    if(uname.value===''){
        uname.value='邮箱/ID/手机号'
        uname.style.borderColor='#d9d9d9'
        uname.style.color='#888'
    }
    else{
        uname.style.borderColor='#d9d9d9'
    }
    
}
</script>
</html>